/*
 * main.cpp
 *
 *  Created on: 11 Oct 2012
 *      Author: Mario Kleinsasser
 *		Time:	19:01:45
 */

#include <iostream>

#include "CEnvironment.h"
#include "CAreaList.h"
#include <stdlib.h>
#include <exception>
#include "CAntSimGenericException.h"
#include "CItemFactory.h"

using namespace std;

int main(int argc, char *argv[]){

	/* COMMIT VON MARIO 25.11.2012 08:43 */

	/* initialize random (only once in the whole program! */
	srand(time(NULL));

	/* create singelton of CEnvironment */
	CEnvironment* environment = CEnvironment::getInstance();

	CItemFactory *myGameFactory = new CItemFactory;

	myGameFactory->newItem("anthill");
	myGameFactory->newItem("food");

	environment->actAll();

	environment->destroy();

	return 0;
}


